<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
        xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Testes Sincronização</title>
    </h:head>
    <h:body>
        <h:form>
            <h:commandButton value="create" action="#{synchronizationBean.createSynchronizationFile()}"/>
            <h:commandButton value="read" action="#{synchronizationBean.readSynchronizationFile()}"/>
            <h:commandButton value="test" action="#{synchronizationBean.test()}"/>
            <br/>
            <p:dataTable value="#{synchronizationBean.filesList}" var="file" paginator="true" rows="10">
                <p:column>
                    <h:outputText value="#{file.name}"/>
                </p:column>
                <p:column>
                    <h:selectBooleanCheckbox value="#{file.ok}"/>
                </p:column>
            </p:dataTable>
            <h:commandButton value="OK" action="#{synchronizationBean.processFiles()}"/>
        </h:form>
    </h:body>
</html>
